<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>
	   	<f:viewParam name="rosterId" value="#{undeterminedRosterHome.id}"></f:viewParam>
	  	<f:event listener="#{undeterminedRosterHome.initConversation()}" type="preRenderView"></f:event>
	   	<f:viewParam name="moduleName" value="待定名单审核"></f:viewParam>
   	</f:metadata>
   <ui:define name="head">
   		<style type="text/css">
   		.column{
   			width: 20%;
   		}
   		.ui-datalist-content{
   		
   			border:none;
   		}
   		</style>
   </ui:define>
   	<ui:define name="content">
   
		<h:form id="editForm">         
			<p:panel id="panel" header="待定名单审核" style="margin-bottom:10px;">
		        <p:messages id="messages" closable="true"><p:autoUpdate/></p:messages>
		        
		        <p:panelGrid cellpadding="5" style="width:98%">
		        	<p:row>
		       			<p:column styleClass="column">        			
							<p:outputLabel  value="中介机构列表" />							
			       		</p:column>
			       		<p:column  >
							#{undeterminedRosterHome.instance.suppliersStr}
			       		</p:column>
			       	</p:row>
		        	
		       	 	<p:row>
		       			<p:column styleClass="column">        			
							<p:outputLabel  value="列入待定名单期限" />							
			       		</p:column>
			       		<p:column  >
							<h:outputText  value="#{undeterminedRosterHome.instance.startDate}"  >
								<f:convertDateTime pattern="yyyy-MM-dd"/>
							</h:outputText>
							至
							<h:outputText  value="#{undeterminedRosterHome.instance.endDate}"  >
								<f:convertDateTime pattern="yyyy-MM-dd"/>
							</h:outputText>    		
			       		</p:column>
			       	</p:row>
			       	<p:row>
			       		<p:column styleClass="column">
			       			<p:outputLabel  value="证据材料" />		
			       		</p:column>
			       		<p:column  >
			       			<p:dataList var="_attr" value="#{undeterminedRosterHome.instance.evidences}">
									<p:commandButton style="margin-left:10px;" ajax="false"  icon="ui-icon-arrowthick-1-s">
								        <p:fileDownload value="#{fileDownloadView.download(_attr)}" />
								        <h:outputText value="#{_attr.filename}" />
								    </p:commandButton>									
								</p:dataList>	
			       		</p:column>
			       	</p:row>
				    
					<p:row>
			       		<p:column styleClass="column" >
			       			<p:outputLabel  value="备注" />		
			       		</p:column>
			       		<p:column >
			       			#{undeterminedRosterHome.instance.remark}
			       		</p:column>
			       	</p:row>
					<p:row>
			       		<p:column styleClass="column" >
			       			<p:outputLabel  value="状态" />		
			       		</p:column>
			       		<p:column >
			       			#{undeterminedRosterHome.instance.audittedStr}
			       		</p:column>
			       	</p:row>
					<p:outputPanel rendered="#{not empty undeterminedRosterHome.instance.auditted}">
						
						<p:row>
				       		<p:column styleClass="column" >
				       			<p:outputLabel  value="审核人" />		
				       		</p:column>
				       		<p:column >
				       			#{undeterminedRosterHome.instance.auditUser.cnname}
				       		</p:column>
			       		</p:row>
			       		<p:row>
				       		<p:column styleClass="column" >
				       			<p:outputLabel  value="审核时间" />		
				       		</p:column>
				       		<p:column >
				       			<h:outputText value="#{undeterminedRosterHome.instance.auditDate}" >
				       				<f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss"/>
				       			</h:outputText>
				       		</p:column>
			       		</p:row>
			       		<p:row rendered="#{not empty undeterminedRosterHome.instance.rejectRecord}">
				       		<p:column styleClass="column" >
				       			<p:outputLabel  value="驳回原因" />		
				       		</p:column>
				       		<p:column >
				       			<h:outputText value="#{undeterminedRosterHome.instance.rejectRecord.reason}" >
				       				<f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss"/>
				       			</h:outputText>
				       		</p:column>
			       		</p:row>
					</p:outputPanel>
					
				</p:panelGrid>
			</p:panel>
			<p:button outcome="UndeterminedRosterList.xhtml" value="返回列表"></p:button>
			
		</h:form>
   	</ui:define>
</ui:composition>
